<ResourceDictionary 
    xmlns:my3="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Toolkit"  
    xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    xmlns:my2="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
    xmlns:my="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:my1="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:dfv="clr-namespace:DataFilesViewer.Controls"
    xmlns:local="clr-namespace:DataFilesViewer"
    >


    <Style TargetType="dfv:dfvFilesList">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="dfv:dfvFilesList">
                    <StackPanel Margin="3" Orientation="Vertical">
                        <my:Label  Content="Drag your files here:"></my:Label>
                        <!-- The treeView which contains the list of files -->
                        <my1:TreeView x:Name="MainTreeViewElement" AllowDrop="True">
                            <my1:TreeView.ItemContainerStyle>
                                <Style TargetType="my1:TreeViewItem">
                                    <Setter Property="IsExpanded" Value="True" />
                                </Style>
                            </my1:TreeView.ItemContainerStyle>
                        </my1:TreeView>
                    </StackPanel>

                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="dfv:dfvMainView">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="dfv:dfvMainView">
                   <my1:TabControl x:Name="MainTabElement" Margin="5"  >
                    </my1:TabControl> 
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="dfv:dfvDatagrid">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="dfv:dfvDatagrid">
                    <my3:DataGridDragDropTarget x:Name="MainGridDragDropElement" HorizontalAlignment="Stretch">
                    <my2:DataGrid x:Name="MainGridElement"  AllowDrop="True" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Visible" AutoGenerateColumns="False"  HorizontalAlignment="Stretch"/>
                </my3:DataGridDragDropTarget>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
